package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.LocatorReferenceList;

/**
 * @author Bright Lee
 */
public final class FreeLocatorStatement implements SqlDataStatement {

    private int beginIndex;
    private int endIndex;
    private LocatorReferenceList locatorReferenceList;

    public FreeLocatorStatement(int beginIndex, LocatorReferenceList locatorReferenceList) {
        this.beginIndex = beginIndex;
        this.endIndex = locatorReferenceList.getEndIndex();
        this.locatorReferenceList = locatorReferenceList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public LocatorReferenceList getLocatorReferenceList() {
        return locatorReferenceList;
    }

}
